package com.only4play.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.only4play.mybatis.support.entity.AuditableEntity;
import jakarta.persistence.CascadeType;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;


/**
 * 用户个人账号实体
 *
 * @author liyuncong
 * @date 2023/11/17 16:37
 **/
@Entity
@Table(name = "user_person_account")
@Getter
@Setter
@TableName("user_person_account")
public class UserPersonalAccountEntity extends AuditableEntity {

    @TableId("id")
    private String id;
    @TableField("login_username")
    private String loginUsername;
    @TableField("login_password")
    private String loginPassword;
    @TableField("alias")
    private String alias;
    @TableField("login_password_salt")
    private String loginPasswordSalt;
    @TableField("user_person_id")
    private String userPersonId;
    @TableField(exist = false)
    private UserPersonEntity person;
}
